class Api::ShortUrlController < ApplicationController
  def index
    @short_url = ShortUrl.get_short_url(params[:url])
    if @short_url.nil?
      render :text => 'NG'
    else
      render :text => decomp_for(@short_url.code)
    end
  end
end
